package org.bao.bean;

import java.lang.reflect.Array;

/**
 * @author ：feller
 * @date ：Created in 2022/05/12 17:08
 * @description：钉钉消息对象
 * @version: 1.0
 */
public class dingtalkBean {

    private String msgtype  = "markdown";//消息类型，此时固定为：markdown。
    private String title;//首屏会话透出的展示内容。
    private String text;//markdown格式的消息。
    private Array atMobiles;//被@人的手机号。
    private Array atUserIds;//被@人的用户userid。
    private Boolean isAtAll = false;//是否@所有人。默认@全部人

    public dingtalkBean(String msgtype, String title, String text, Array atMobiles, Array atUserIds, Boolean isAtAll) {
        this.msgtype = msgtype;
        this.title = title;
        this.text = text;
        this.atMobiles = atMobiles;
        this.atUserIds = atUserIds;
        this.isAtAll = isAtAll;
    }

    public dingtalkBean(String msgtype, String title, String text) {
        this.msgtype = msgtype;
        this.title = title;
        this.text = text;
    }

    public String getMsgtype() {
        return msgtype;
    }

    public void setMsgtype(String msgtype) {
        this.msgtype = msgtype;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Array getAtMobiles() {
        return atMobiles;
    }

    public void setAtMobiles(Array atMobiles) {
        this.atMobiles = atMobiles;
    }

    public Array getAtUserIds() {
        return atUserIds;
    }

    public void setAtUserIds(Array atUserIds) {
        this.atUserIds = atUserIds;
    }

    public Boolean getAtAll() {
        return isAtAll;
    }

    public void setAtAll(Boolean atAll) {
        isAtAll = atAll;
    }

    @Override
    public String toString() {
        return "dingtalkBean{" +
                "msgtype='" + msgtype + '\'' +
                ", title='" + title + '\'' +
                ", text='" + text + '\'' +
                ", atMobiles=" + atMobiles +
                ", atUserIds=" + atUserIds +
                ", isAtAll=" + isAtAll +
                '}';
    }
}
